Java: automodel application mode: use endpoint class like in framework mode#13886
Conversation
57cd4c1 to
d31e48d
Compare
…rely on normal argument node for nicer extracted examples
6f746c7 to
e1a5eba
Compare
…responding to a varargs array
4906015 to
3433437
Compare
|
@jcogs33, are you able to take a look? CI Checks are ✅ |
Sure, I'll try to take a look sometime tomorrow (2023/08/09). |
jcogs33
left a comment
There was a problem hiding this comment.
I added a couple minor questions, otherwise looks reasonable to me. You might want a second pair of 👀 since I'm not sure if I'm familiar enough with the automodel code (as my questions might show 🙂).
For varargs arguments, we only use the first argument passed as endpoint (example). This is easy and avoids redundancy. We're not forced to do it that way, but it makes sense to me. Otherwise, we'd push complexity to the the classification script (eg., it might decide to use competing classifications for a given MaD model) and to the triage tooling. Do you agree?
I agree that just using the the first varargs argument as endpoint sounds like the best solution.
Co-authored-by: Jami <57204504+jcogs33@users.noreply.github.com>
|
Thanks for the thorough review 🥳 I think I've addressed your comments :) |
jcogs33
left a comment
There was a problem hiding this comment.
Looks reasonable to me :)
There now is a new endpoint class in application mode that mirrors the one we recently added to framework mode. The new class additionally has proper support for vararg arrays.
You'll find some documentation of how the class behaves in the qll file.
The test case in Test.java shows how varargs are treated.
Questions for Reviewers
fyi, @jhelie